package cn.seaboot.admin.store;

import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;

/**
 * @author Mr.css
 * @version 2022-06-02 16:33
 */
public class Test {

    public static void main(String[] args) throws Exception {
        SAXReader reader = new SAXReader();
        Document doc = reader.read("C:\\Users\\postm\\Desktop\\store.xml");

        Element element = doc.getRootElement();

        System.out.println(element.getName());
        System.out.println(element.attribute(0).getName());
    }
}
